package com.esms.struts.service;

import java.util.List;

import com.esms.bean.*;
import com.esms.bean.*;

public class RoleLevelService {
	private RoleLevelService() {}
	public static RoleLevelService $ = new RoleLevelService(); 
	
	public List getRoleLevels() {
		return ActioncolumnDAO.$.findAll();
	}
	
	public Actioncolumn getRoleLevel(String actioncolumnname) {
		List list = ActioncolumnDAO.$.findByActioncolumnname(actioncolumnname);
		if((null == list) || list.size() == 0)
			return null;
		else
			return (Actioncolumn) list.get(0);
	}
}
